<html>
<head><meta charset="utf-8"><title>match_guard_mutable_borrow · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/match_guard_mutable_borrow.html">match_guard_mutable_borrow</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="163805670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/match_guard_mutable_borrow/near/163805670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/match_guard_mutable_borrow.html#163805670">(Apr 20 2019 at 14:33)</a>:</h4>
<p>Could we offload all the checks that are done on match guards wrt them mutably borrowing their surroundings onto mir-borrowck? There's some weird interactions between the two (<a href="https://github.com/rust-lang/rust/pull/60125#discussion_r277136282" target="_blank" title="https://github.com/rust-lang/rust/pull/60125#discussion_r277136282">https://github.com/rust-lang/rust/pull/60125#discussion_r277136282</a>) and aren't match guards essentially <code>Fn</code> closures that are called immediately?</p>



<a name="164113000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/match_guard_mutable_borrow/near/164113000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/match_guard_mutable_borrow.html#164113000">(Apr 24 2019 at 19:38)</a>:</h4>
<p>We can't do that -- at minimum -- until the NLL transition is complete, <span class="user-mention" data-user-id="124288">@oli</span>, but I do believe we plan to do that</p>



<a name="164113016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/match_guard_mutable_borrow/near/164113016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/match_guard_mutable_borrow.html#164113016">(Apr 24 2019 at 19:39)</a>:</h4>
<p>(cc <span class="user-mention" data-user-id="116083">@pnkfelix</span> and <span class="user-mention" data-user-id="116118">@Matthew Jasper</span>)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>